<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/wondershare/js/jquery.js"></script>
<script type="text/javascript">
function check(){
	var author = $("#author").val();
	var email = $("#email").val();
	var avatar = $("#avatar").val();
	var gaccount = $("#gaccount").val();
	
	if( !author || !email || !avatar || !gaccount ){
		alert('作者、twitter账号、头像及google账号不能为空！');
		return false;
	}
	return true;
}

</script>
</head>
<body style="padding:5px;">
<form method="post" action="?action=<{if $data.aid}>edit&aid=<{$data.aid}><{else}>add<{/if}>" onsubmit="return check();">
<table width="90%" cellpadding="1" cellspacing="1" class="list-div">
  <tr>
    <th colspan="2" align="left">&nbsp;新增作者</th>
  </tr>
    <tr>
      <td width="100" align="right">作 者&nbsp;&nbsp;&nbsp;</td>
      <td><input type="text" id="author" name="author" size="30" value="<{$data.author}>" /></td>
    </tr>
    <tr>
      <td align="right">twitter账号&nbsp;&nbsp;&nbsp;</td>
      <td><input type="text" id="email" name="email" size="30" value="<{$data.email}>" /></td>
    </tr>
    <tr>
      <td align="right">头像地址&nbsp;&nbsp;&nbsp;</td>
      <td><input type="text" id="avatar" name="avatar" size="30" value="<{$data.avatar}>" /></td>
    </tr>
    <tr>
      <td align="right">google+账号&nbsp;&nbsp;&nbsp;</td>
      <td><input type="text" id="gaccount" name="gaccount" size="30" value="<{$data.gaccount}>" /></td>
    </tr>
    <tr>
      <td align="right"><input type="hidden" value="1" name="ispost" /></td>
      <td><input type="submit" value=" 确 定 "></td>
    </tr>
</table>
</form>
</body>
</html>
